package org.arain.spring.captive.portal;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cache.ehcache.EhCacheCacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;

@SpringBootApplication(exclude = { MongoAutoConfiguration.class, MongoDataAutoConfiguration.class,DataSourceAutoConfiguration.class,DruidDataSourceAutoConfigure.class})
@ComponentScan(basePackages = { "org.arain.spring.captive.portal","org.arain.spring.common.external.utils" })
public class SpringCaptivePortalApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringCaptivePortalApplication.class, args);
	}
	
	@Bean
	public EhCacheCacheManager cacheCacheManager() {
		return new EhCacheCacheManager();
	}

}
